/**
 * File: saga.ts
 * Project: reactssr
 * Created Date: Wednesday 2018/01/03 10:53:33
 * Author: zhengjiang
 * -----
 * Last Modified: Thursday 2018/01/04 13:46:46
 * Modified By: zhengjiang
 * -----
 * Description: 
 * 
 */

import { put, call, takeLatest, setContext } from 'redux-saga/effects';
import { indexActions } from './action';
import { IIndexState } from './reducer';

function* initCount({payload}:{payload:IIndexState}){
    yield put(indexActions.updateCount(payload))
}

export const indexSaga = [ takeLatest(indexActions.initCount, (action:any) => initCount(action)) ];
